var JBInspector = Class.create();
JBInspector.prototype = {
    initialize: function(element) {
    //
    },
    toggleGroup : function(groupName)
    {
        JB.execute(
          {
            method : 'toggleCategory',
            component : 'inspector',
            parameters : groupName,
            onComplete : function(){       
                Element.toggle('ip'+groupName);
            }
          }
        )
    },
    
    showPropertyEditor : function(n,u,w,h,x) {
        args="width="+w+",height="+h+",resizable=0,titlebar=0,scrollbars=0,status=0";
        remote=window.open(u,n,args);
        remote.blur();
        remote.focus();
        if (remote != null) {
            if (remote.opener == null)
                remote.opener = self;
        }
        if (x == 1) { return remote; }
    }    
}

function updateOpener(ele){ 
    
    if(self.opener){
        self.opener.jbDesigner.onChangeProperty(ele);
    }
    if(top.main) {
        top.main.jbDesigner.onChangeProperty(ele);
    }
}  

Inspector = new JBInspector();